package com.job.yangshida.homework11and12.homework0712;

import java.util.Scanner;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-13 13:59:29
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        for (;true;){
        System.out.println("输入一个1-3的数");
        String n=sc.next();
        if (n.equals("exit")){
            break;
        }
        Attack attack=Factory.getAttack(n);
        Taige tt=new Taige();
        tt.setAttack(attack);
        tt.hit();
    }
}}
